package com.mdb.open.trade.domain.vo.trade;

import com.mdb.bc.api.data.DataObjectBase;
import com.mdb.open.common.enums.trade.status.AttachFileStatusEnum;
import com.mdb.open.common.enums.trade.type.AttachFileTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @description:
 * @author: you.yichao
 * @create: 2019-07-02 17:10
 **/
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="FileInfoDto", description="附件Vo对象")
public class FileInfoVo extends DataObjectBase {


    public FileInfoVo(String attachNo, String fileUrl, AttachFileStatusEnum status) {
        this.fileUrl = fileUrl;
        this.status = status;
        this.attachNo = attachNo;
    }

    public FileInfoVo(String attachNo, String fileUrl, AttachFileStatusEnum status, String fileName) {
        this.fileUrl = fileUrl;
        this.status = status;
        this.attachNo = attachNo;
        this.fileName = fileName;
    }

    public FileInfoVo() {
    }

    /**
     * 文件Id
     */
    @ApiModelProperty(value = "文件地址")
    private String fileUrl;

    /**
     * 文件名
     */
    @ApiModelProperty(value = "文件名")
    private String fileName;

    /**
     * 文件类型
     */
    @ApiModelProperty(value = "文件类型")
    private AttachFileTypeEnum fileType;

    /**
     * 文件编号
     */
    @ApiModelProperty(value = "文件编号")
    private String attachNo;

    /**
     * 文件状态
     */
    @ApiModelProperty(value = "文件状态")
    private AttachFileStatusEnum status;

}
